package com.simonall.netty.resolver;

import java.util.List;
import java.util.Map;

import io.netty.handler.codec.http.HttpRequest;

/**
 * 参数解析器
 * 
 * @author simonall
 */
public interface HttpParamResolver {

	/**
	 * Resolver To Map
	 * 
	 * @param request 请求域
	 * @return
	 */
	Map<String, List<String>> resolver(HttpRequest request);

	/**
	 * Resolver To Object
	 * 
	 * @param request 请求域
	 * @param clazz   target object
	 * @return
	 */
	<T> T resolver(HttpRequest request, Class<T> clazz);

}
